package com.topvision.myviewtest.mvp.api;

import com.topvision.myviewtest.mvp.bean.WeatherBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * Author: lucy
 * Comment: Api服务接口
 * Date: 2017-12-11 13:31
 */

public interface ApiServer {
    /**
     * 请求天气接口
     * @param cityId
     * @return
     */
    @GET("data/cityinfo/{cityId}.html")
    Call<WeatherBean> requestWeather(@Path("cityId") String cityId);
}
